package com.woniuxy.project115.kaer.tenant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuH
 * @since 2025年02月18日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("service_order")
public class ServiceOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "service_order_num", type = IdType.AUTO)
    private String serviceOrderNum;

    /**
     * 服务预约id
     */
    @TableField("appointment_id")
    private Integer appointmentId;

    @TableField("service_node_id")
    private Integer serviceNodeId;

    /**
     * 店铺id
     */
    @TableField("store_id")
    private Integer storeId;

    @TableField("store_name")
    private String storeName;

    /**
     * 订单总价
     */
    @TableField("total_price")
    private Double totalPrice;

    /**
     * 下单时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 0：待服务 1：服务中 2：待验收 3：已取消 4：待支付 :5：已完成
     */
    @TableField("state")
    private Integer state;

    /**
     * 支付状态
     */
    @TableField("pay_state")
    private Integer payState;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime payTime;

    /**
     * 订单备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;

    /**
     * 用户电话
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * 车牌号
     */
    @TableField("vehicle_num")
    private String vehicleNum;

    /**
     * 品牌名称
     */
    @TableField("brand_name")
    private String brandName;

    /**
     * 车辆型号
     */
    @TableField("vehicle_name")
    private String vehicleName;

    /**
     * 评分
     */
    @TableField("score")
    private Double score;

    @TableField("type_name")
    private String typeName;

}
